<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class WebContentTable extends Migration
{
    /**
     * Run the migrations.
     *网站内容编辑
     * @return void
     */
    public function up()
    {
        Schema::create('web_content', function (Blueprint $table) {
            $table->engine='MyISAM';
            $table->comment='网站内容编辑';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->integer('descid')->unsigned()->default(0)->comment('排序值');
            $table->string('title',100)->default('')->comment('标题');
            $table->string('sign',100)->unique('sign')->default('')->comment('标记');
            $table->string('img',255)->default('')->comment('背景图片上传');
            $table->text('content')->default('')->comment('内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('web_content');
    }
}
